package demo1;

public class Main {
    public static void main(String[] args) {
        IPhoneProduct product = new XiaomiPhone();
        product.calling();
        product.shutdown();
        product.sendMsg();

        IPhoneProduct product1 = new HuaWeiPhone();
        product1.start();
        product.shutdown();
        product.calling();


        IRouterProduct product2 = new XiaoMiRouter();
        product2.start();
        product2.shutdown();
        product2.setting();
    }
}